import { defineStore } from "pinia";

export const useUserStore = defineStore({
  id: 'number',
  persist: true, //开启持久化
  state: () => {
    return {
      number: 6
    }
  },
  actions: {
    say(state: any) {
      return state.number++
    }
  }
})
